package com.smartcommunity.controller.common;

import com.smartcommunity.bean.model.Result;
import com.smartcommunity.controller.BaseController;
import com.smartcommunity.service.common.SystemEnumService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

@Api(value = "系统枚举", tags = {"系统枚举"})
@RestController
@RequestMapping("/system")
public class SysEnumController extends BaseController {


    @Autowired
    SystemEnumService systemEnumService;

    @ApiOperation(value = "获取所有系统枚举", notes = "获取所有系统枚举", httpMethod = "GET")
    @RequestMapping(value = "/listSysEnum", method = RequestMethod.GET)
    public Result listSysParams() {
        return systemEnumService.selectEnumList();
    }

    @ApiOperation(value = "获取所有系统枚举", notes = "获取所有系统枚举", httpMethod = "GET")
    @RequestMapping(value = "/listSysEnumEx", method = RequestMethod.GET)
    public Result listSysParamsEx() {
        return systemEnumService.selectEnumListMap();
    }


}
